/**
 * 
 */
package com.sillycoder.entity;

import java.util.Date;

/**
 * @author SillyCoder
 * 
 */
public class EmpEntity {
	private int empno;// 员工编号
	private String ename;// 员工名称
	private String job;// 职位
	private int mgr;// 上级编号
	private Date hiredate;// 入职时间
	private double sale;// 工资
	private double comm;// 奖金
	private int deptno;//部门编号
	private DeptEntity dept;

	/**
	 * 
	 */
	public EmpEntity() {
		// TODO Auto-generated constructor stub
	}
	public EmpEntity(int empno, String ename, String job, int mgr,
			Date hiredate, double sale, double comm,int deptno) {
		super();
		this.empno = empno;
		this.ename = ename;
		this.job = job;
		this.mgr = mgr;
		this.hiredate = hiredate;
		this.sale = sale;
		this.comm = comm;
		this.deptno = deptno;
	}
	public EmpEntity(int empno, String ename, String job, int mgr,
			Date hiredate, double sale, double comm,int deptno,DeptEntity dept) {
		super();
		this.empno = empno;
		this.ename = ename;
		this.job = job;
		this.mgr = mgr;
		this.hiredate = hiredate;
		this.sale = sale;
		this.comm = comm;
		this.deptno = deptno;
		this.dept = dept;
	}

	public int getEmpno() {
		return empno;
	}

	public void setEmpno(int empno) {
		this.empno = empno;
	}

	public String getEname() {
		return ename;
	}

	public void setEname(String ename) {
		this.ename = ename;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public int getMgr() {
		return mgr;
	}

	public void setMgr(int mgr) {
		this.mgr = mgr;
	}

	public Date getHiredate() {
		return hiredate;
	}

	public void setHiredate(Date hiredate) {
		this.hiredate = hiredate;
	}

	public double getSale() {
		return sale;
	}

	public void setSale(double sale) {
		this.sale = sale;
	}

	public double getComm() {
		return comm;
	}

	public void setComm(double comm) {
		this.comm = comm;
	}

	public int getDeptno() {
		return deptno;
	}

	public void setDeptno(int deptno) {
		this.deptno = deptno;
	}

	public DeptEntity getDept() {
		return dept;
	}

	public void setDept(DeptEntity dept) {
		this.dept = dept;
	}
}
